package ClubRecruitment;

public class ArrayDemo2 {
    public static void main(String[] args) {
        int[] boorowCounts = {8,15,5,20,12};
        String[] bookTitles = {"Java编程基础","数据结构与算法","Python入门","数据库原理","计算机网络"};
        boorowCounts[0] = 10;
        int count = 0;
        System.out.println("借阅次数>=10的图书: ");
        for (int i=0; i < boorowCounts.length;i++){
            if (boorowCounts[i] >= 10){
                System.out.println(bookTitles[i] + ": " + boorowCounts[i] + "次");
                count++;
            }
        }
        System.out.println("共" + count + "本图书满足条件");
    }
}
